package com.task.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.task.common.domain.info.KeyAndValue;
import com.task.core.domain.DeviceFraudPlatformInfo;
import com.task.core.dto.request.DeviceFraudPlatformRequestDTO;

/**
 * @author 迪迦.
 * @date 2024/11/5 16:26
 */
@Mapper
public interface DeviceFraudPlatformMapper {

  List<DeviceFraudPlatformInfo> getDeviceFraudPlatformByPage(DeviceFraudPlatformRequestDTO request);

  //DeviceFraudPlatformInfo getDeviceFraudPlatformByCode(DeviceFraudPlatformRequestDTO request);

  List<KeyAndValue> getDeviceFraudPlatformForOption(DeviceFraudPlatformRequestDTO request);

  void addDeviceFraudPlatform(DeviceFraudPlatformRequestDTO request);

  Integer modifyDeviceFraudPlatform(DeviceFraudPlatformRequestDTO request);

  Integer deleteDeviceFraudPlatform(@Param("code") String deviceFraudPlatformCode, @Param("userId") Long userId);

    DeviceFraudPlatformInfo getDeviceFraudPlatformById(@Param("code")String code);

  List<String> getDeviceFraudByDeviceFraudPlatformCode(String code);
}
